<?php if ( $comfort->count() ): ?>
    <div id="rangePics">
        <?php $my_comfort = $my_comfort instanceof sfOutputEscaperArrayDecorator ? $my_comfort->getRawValue() : $my_comfort;
                foreach ( $comfort as $item ):
                    $comf = $item instanceof sfOutputEscaperIteratorDecorator ? $item->getRawValue()->getLodgingComfort() : $item->getLodgingComfort() ?>
                    <div class="comf">
                        <div class="comf_<?php echo (in_array( $comf, $my_comfort ) ? "off" : "on") ?>"></div>
                        <div class="comf_<?php echo $item->getLodgingComfort() ?>" title="<?php echo $item->getLodgingComfortName() ?>"></div>
                    </div>
        <?php   endforeach ?>
    </div>

    <div class="clear"></div>
    <p>&nbsp;</p>
<?php endif ?>
